{% set form = hookable_metadata.context.form|default(null) %}

{% if form is not null and form.vars.valid == false %}
    <div class="container-xl">
        <div class="sylius alert alert-danger" role="alert" {{ sylius_test_html_attribute('form-error-alert') }}>
            <div class="d-flex">
                <div>{{ ux_icon('tabler:exclamation-circle') }}</div>
                <div class="mx-2">
                    <h4 class="alert-title">{{ 'sylius.ui.error'|trans }}</h4>
                    <div class="text-secondary">{{ 'sylius.ui.this_message_contains_errors'|trans }}</div>
                </div>
            </div>
        </div>
    </div>
{% endif %}
